<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "Coupon.basicInfo"/> - <@s.m "global.edit"/></div>
	<form class="ropt" action="v_listCoupon.do">
	<@p.hidden name="userId" value=coupon.user.id/>
		<input type="submit" value="<@s.m "global.backToList"/>" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<@p.form id="jvForm" action="o_updateCoupon.do" labelWidth="12">
<@p.hidden name="id" value=coupon.id/>
<@p.hidden name="userId" value=coupon.user.id/>
<@p.td colspan="1" width="50" label="用户" >${coupon.user.name!}</@p.td>
<@p.select colspan="1" width="50" label="类型" name="couponType" value=coupon.couponType list=couponTypeList value=coupon.couponType listKey="dicCode" listValue="dicName" required="true"/><@p.tr/>
<@p.select colspan="1" width="50" label="来源" name="couponSource" value=coupon.couponSource list=couponSourceList value=coupon.couponSource listKey="dicCode" listValue="dicName" required="true"/>
<@p.text colspan="1" width="50" label="金额" name="amount" value=coupon.amount value=coupon.amount  required="true" class="required" maxlength="100"/><@p.tr/>
<@p.select colspan="1" width="50" label="状态" name="status" value=coupon.status list=statusList value=coupon.status listKey="dicCode" listValue="dicName" required="true"/>
<@p.text colspan="1" width="50" label="使用日期" name="usedTime" value=coupon.usedTime style="width:140px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate"/><@p.tr/>

<@p.text colspan="1" width="50" label="生成日期" name="createTime" value=coupon.createTime style="width:140px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" required="true" class="Wdate"/>
<@p.text colspan="1" width="50" label="失效日期" name="endTime" value=coupon.endTime style="width:140px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" required="true" class="Wdate"/><@p.tr/>


<@p.td colspan="2">
	<@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/>
</@p.td>
</@p.form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>